package com.dense.kuiniu.shelfcard.card.idcard;

import android.graphics.Bitmap;
import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author Administrator
 * @date 2020/8/31
 */
public class IDCardInfo implements Parcelable {
    private String name;
    private String sex;
    private String address;
    private String birthDay;
    private Bitmap mBitmap;
    private String cardNo;
    private String cardState;

    public String getCardState() {
        return cardState;
    }

    public void setCardState(String cardState) {
        this.cardState = cardState;
    }

    public String getCardNo() {
        return cardNo;
    }

    public void setCardNo(String cardNo) {
        this.cardNo = cardNo;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getBirthDay() {
        return birthDay;
    }

    public void setBirthDay(String birthDay) {
        this.birthDay = birthDay;
    }

    public Bitmap getBitmap() {
        return mBitmap;
    }

    public void setBitmap(Bitmap bitmap) {
        mBitmap = bitmap;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.name);
        dest.writeString(this.sex);
        dest.writeString(this.address);
        dest.writeString(this.birthDay);
        dest.writeString(this.cardNo);
        dest.writeString(this.cardState);
        dest.writeParcelable(this.mBitmap, flags);
    }

    public IDCardInfo() {
    }

    protected IDCardInfo(Parcel in) {
        this.name = in.readString();
        this.sex = in.readString();
        this.address = in.readString();
        this.birthDay = in.readString();
        this.cardNo = in.readString();
        this.cardState = in.readString();
        this.mBitmap = in.readParcelable(Bitmap.class.getClassLoader());
    }

    public static final Parcelable.Creator<IDCardInfo> CREATOR = new Parcelable.Creator<IDCardInfo>() {
        @Override
        public IDCardInfo createFromParcel(Parcel source) {
            return new IDCardInfo(source);
        }

        @Override
        public IDCardInfo[] newArray(int size) {
            return new IDCardInfo[size];
        }
    };
}